import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/home'
import Members from '../components/members'
import Emails from '../components/emails'

Vue.use(Router)

export default new Router({
	routes:[
		{
			path:'/',
			name:'Home',
			component:Home  // 注意：路由里不能写 components:{...,...}，也很容易理解，一个路由容器就是填充一个组件
		},
		{
			path:'/members',
			name:'Members',
			component:Members
		},
		{
			path:'/emails',
			name:'Emails',
			component:Emails
		}
	]
})